package service.sys;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.common.BaseMapper;
import com.common.BaseService;

import beans.sys.UserBean;
import mapper.sys.UserMapper;

@Service
@Transactional
public class LoginServiceImpl<T> extends BaseService<T>{
    
	@Resource
    private UserMapper<T> userMapper;

    public UserBean Login(String username, String password) {
    	UserBean ub = userMapper.login(username, password);
        return ub;
    }

	@Override
	public BaseMapper<T> getMapper() {
		return userMapper;
	}

	public Map getUserName(String account) {
		// TODO Auto-generated method stub
		return userMapper.getUserName(account);
	}
}